import numpy as np
import matplotlib.pyplot as plt

x = np.linspace(-5,5,20)
y = 1 / (1 + np.e ** (-x))

plt.plot(x,y,'r-')

plt.show()